﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Xml.Linq;

namespace Blog.Core.DTO.ViewModel.Dictionary
{
    public class GetDictDataDTO
    {
        /// <summary>
        /// 主键
        /// </summary>
        public int Dict_code { get; set; }
        /// <summary>
        /// 字典排序
        /// </summary>
        public int Dict_sort { get; set; }
        /// <summary>
        /// 字典标签
        /// </summary>
        public string Dict_label { get; set; }
        /// <summary>
        /// 字典键值
        /// </summary>
        public string Dict_value { get; set; }
        /// <summary>
        /// 字典类型编号
        /// </summary>
        public int Dict_type { get; set; }
        /// <summary>
        /// 样式属性（其他样式扩展）
        /// </summary>
        public string? Dict_class { get; set; }
        /// <summary>
        /// 表格回显样式
        /// </summary>
        public string? List_class { get; set; }
        /// <summary>
        /// 是否默认（0是 1否）
        /// </summary>
        public int Is_default { get; set; } = 0;
        /// <summary>
        /// 状态
        /// </summary>
        public int Status { get; set; } = 0;
        /// <summary>
        /// 字典类型
        /// </summary>
        public string TypeName { get; set; }

        /// <summary>
        /// 创建人
        /// </summary>
        [Display(Name = "创建人")]
        public string? CreateName { get; set; }
        /// <summary>
        /// 创建时间
        /// </summary>
        [Display(Name = "创建时间")]
        public DateTime? CreateTime { get; set; }
        /// <summary>
        /// 修改人
        /// </summary>
        [Display(Name = "修改人")]
        public string? UpdateName { get; set; }
        /// <summary>
        /// 修改时间
        /// </summary>
        [Display(Name = "修改时间")]
        public DateTime? UpdateTime { get; set; }
        /// <summary>
        /// 软删除
        /// </summary>
        [Display(Name = "软删除")]
        public int Delete { get; set; }
    }
}
